import request from '@/utils/request'
import qs from 'qs'
export function deptList(data) {
  return request({
    url: '/api/dept/list',
    method: 'post',
    data:data
  })

}


export  function saveDept(data){
  return request({
    url:'/api/dept/save',
    method:'post',
    data:data
  })
}


export function delDept(data){
  return request({
    url:'/api/dept/del',
    method:'post',
    data:qs.stringify(data),
    headers:{"Content-Type":"application/x-www-form-urlencoded"}
  })
}

